home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / thrust_2.swf / scripts / frame_21 / PlaceObject2_86_530 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2012-01-07  |  466b  |  19 lines

  1. onClipEvent(enterFrame){
  2.    if(Pause > 0)
  3.    {
  4.       Pause -= 1;
  5.    }
  6.    else if(Pause == 0)
  7.    {
  8.       Pause = 150;
  9.       _root.Shoot.start();
  10.       _root.enemybullet._x = this._x;
  11.       _root.enemybullet._y = this._y;
  12.       angle = random(360);
  13.       xstep = (_root.ship._x - _root.enemybullet._x) / 70;
  14.       ystep = (_root.ship._y - _root.enemybullet._y) / 70;
  15.       _root.enemybullet.bx = - xstep;
  16.       _root.enemybullet.by = - ystep;
  17.    }
  18. }
  19.